Skip to content

KC-1342: Fix pam config list dropping seconds from 6-part Quartz CRON#2192

Merged
craiglurey merged 1 commit into
releasefrom
KC-1342
Jul 7, 2026
Merged

KC-1342: Fix pam config list dropping seconds from 6-part Quartz CRON#2192
craiglurey merged 1 commit into
releasefrom
KC-1342

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

pam config list showed truncated rotation schedules for PAM configs stored with 6-part Quartz CRON expressions. export_schedule_field() was dropping the seconds field when exporting type: CRON schedules, so list output did not match the stored value (e.g. "1 5 1 * * ?" displayed as "5 1 * * ?"). This fix preserves the full stored cron string.

Changes

  • vault.py — return the complete cron value for CRON-type schedules instead of stripping the first field from 6-part expressions
  • test_importer.py — added test_export_schedule_field_preserves_quartz_cron_seconds covering 6-part and 5-part Quartz cron export

@sshrushanth-ks sshrushanth-ks self-assigned this Jul 7, 2026
@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review July 7, 2026 12:20
@craiglurey
craiglurey merged commit d2a71e2 into release Jul 7, 2026
4 checks passed
@sk-keeper
sk-keeper deleted the KC-1342 branch July 7, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants